@(content: Html)

@import tags._
@import forms.LoginForm._
@import helper._
@import helpers.Seguranca.InformacoesUsuarioHelper._
 
<!DOCTYPE html> 

	<html>
	
	    <head>
	        <title>SIGEPI - Sistema de Gestão de Pesquisa e Inovação</title>
	        
	        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	        
	        <!-- Estilos do Twitter Boostrap -->
	        <link rel="stylesheet" media="screen" href="@routes.Assets.at("bootstrap/css/bootstrap.min.css")">
	        <style type="text/css">
		      body {
		        padding-top: 80px;
		        padding-bottom: 40px;
		      }
		    </style>
			<link rel="stylesheet" media="screen" href="@routes.Assets.at("bootstrap/css/bootstrap-responsive.min.css")">
			    
	        <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
		    <!--[if lt IE 9]>
		      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
		    <![endif]-->
		    
	        <!-- Estilos da AplicaÃ§Ã£o -->    
	        <link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/bootstrap.css")">  
	        <link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/main.css")">
	        <link rel="shortcut icon" type="image/png" href="@routes.Assets.at("images/favicon.png")">
	        
	        <script src="@routes.Assets.at("javascripts/jquery-1.7.1.min.js")" type="text/javascript"></script>
			<script src="@routes.Assets.at("bootstrap/js/bootstrap.min.js")" type="text/javascript"></script>	
	        <script src="@routes.Assets.at("bootstrap/js/bootstrap-collapse.js")" type="text/javascript"></script>
	        <script src="@routes.Assets.at("bootstrap/js/bootstrap-alert.js")" type="text/javascript"></script>  
	        <script src="@routes.Assets.at("javascripts/main.js")" type="text/javascript"></script>
	    </head>
	    
	    <body>
			@if(isLogado()) {
		
				@if(getUsuarioLogado().isProfessor) {
					@menuProfessor()
	   	    	}
	   	    
	   	    	@if(getUsuarioLogado().isAdministrador) {
					@menuAdmin()
	   	    	}
	   	    
	   	    	@if(getUsuarioLogado().isBolsista)	{
	   	    		@menuBolsista() 	
	   	    	}
	   	    
	   	    	@if(getUsuarioLogado().isServidor){
	   	     	   @menuServidor()
	   	    	}
	    	
	    	} else {
	    		@menuPublico()
	    	}
	
			<div class="container">
				<div class="content">
					<div class="page-header">
					
						@*  <h1>@title</h1> *@
					    
					    @if(flash.containsKey("success")){
							<br>
							<center>
								<h3><div class="success">@flash.get("success")</div></h3>
							</center>  
							<br>
						}
						
						@if(flash.containsKey("error")){
						    <br>
							<center>
								<h3><div class="error">@flash.get("error")</div></h3>
							</center> 
							<br>
						}
						
	                </div>
					
					<div class="row">
						@content
	                </div>
	                
				</div>
				
				<hr>
				
	            <footer>
	        		<br>
					<center>
						<p>
							SIGEPI - Sistema de Gestão de Pesquisa e Inovação - Versão 1.2 Alpha
							<br>
							<a href="http://portal.ifrn.edu.br/pesquisa/pro-reitoria-de-pesquisa-e-inovacao" target="blank" >PROPI - Pró-reitoria de Pesquisa e Inovação</a>
							<br>
							<a href="http://ifrn.edu.br" target="blank">Instituto Federal de Educação, Ciência e Tecnologia do Rio Grande do Norte</a>
							<br>
						</p>
					</center>
				</footer>
				
			</div>
			
	    </body>
	</html>